package com.leap.entity.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Builder;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@Builder
@Schema(description = "对话类")
public class ChatRecordVO {

    @Schema(description = "用户对话Id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long chatId;

    @Schema(description = "用户对话标题")
    private String title;

    @Schema(description = "用户Id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long accountId;

    @Schema(description = "用户对话次数")
    private int num;

    @Schema(description = "最新对话时间")
    private LocalDateTime updateTime;
}
